package com.lucher.mes.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.lucher.mes.dao.DepotrackinfoMapper;
import com.lucher.mes.po.Depotrackinfo;
import com.lucher.mes.service.IDepotrackinfoService;

@Service("depotrackinfoService")
public class DepotrackinfoServiceImpl implements IDepotrackinfoService{
	 // 定义DAO
    @Resource
    private DepotrackinfoMapper depotrackinfoMapper = null;

    @Override
    public int deleteByPrimaryKey(Integer depotrackinfoId) {
        return depotrackinfoMapper.deleteByPrimaryKey(depotrackinfoId);
    }

    @Override
    public int insert(Depotrackinfo record) {
        return depotrackinfoMapper.insert(record);
    }

    @Override
    public int insertSelective(Depotrackinfo record) {
        return depotrackinfoMapper.insertSelective(record);
    }

    @Override
    public Depotrackinfo selectByPrimaryKey(Integer depotrackinfoId) {
        return depotrackinfoMapper.selectByPrimaryKey(depotrackinfoId);
    }

    @Override
    public int updateByPrimaryKeySelective(Depotrackinfo record) {
        return depotrackinfoMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Depotrackinfo record) {
        return depotrackinfoMapper.updateByPrimaryKey(record);
    }
    
    @Override
    public List<Depotrackinfo> findByList(Depotrackinfo record) {
        return depotrackinfoMapper.findByList(record);
    }
    
    @Override
    public int findByCount(Depotrackinfo record) {
        return depotrackinfoMapper.findByCount(record);
    }
    
    @Override
    public List<Depotrackinfo> findByListForPage(Depotrackinfo record) {
        return depotrackinfoMapper.findByListForPage(record);
    }

    @Override
    public int deleteByDepotrackcode(String depotrackcode) {
        return depotrackinfoMapper.deleteByDepotrackcode(depotrackcode);
    }
}
